<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/20
  Time: 15:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
<style type="text/css">
    table{border-collapse: collapse}
</style>
</head>
<body>
<table>
    <tr>
        <td>编号</td>
        <td>用户名</td>
        <td>密码</td>
        <td>操作1</td>
        <td>操作2</td>
    </tr>
   <%-- <c:forEach var="i" begin="1" end="100">
        <p>${i}</p>
    </c:forEach>--%>
<c:forEach var="list" items="${userList}">

    <tr>
        <td>${list.id}</td>
        <td>${list.username}</td>
        <td>${list.password}</td>
        <td><a href="/edu/sctu2/Delete2?deleteid=${list.id}">删除</a></td>
        <td><a href="/edu/sctu2/Update2?updateid=${list.id}">编辑</a></td>
    </tr>

</c:forEach>
</table>
<a href="/userAdd.jsp">增加用户</a>
<a href="/userSelect.jsp">查询用户</a>
</body>
</html>